<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>确认调货单</title>
</head>

<body>
<div class="centercontent tables">
    <div class="pageheader notab">
        <h1 class="pagetitle">确认清仓列表</h1>
        <span class="pagedesc"></span>
    </div>
</div>
<div class="contentwrapper" style="width:760px;margin:10px auto;">
<form class="stdform stdform2" method="post" id="clearinfoform" action="/sales/ajaxbutton?op=saveClearGoods">
<input type='hidden' name='clear_goods_json' value='{{$save_json}}'>
<input type='hidden' name='status' value='2' id="status">
<table cellpadding="0" cellspacing="0" border="0" class="stdtable"  align="center">
                <thead>
                <tr>
                  <th class="head1">NO.</th>
                    <th class="head1">商品编号</th>
                    <th class="head1">商品名称</th>
                    <th class="head1">仓库</th>
                    <th class="head1">仓位</th>
                    <th class="head1">剩余库存</th>
                     <th class="head1">成本</th>
                    <th class="head1">合计</th>
                   <!-- <th class="head1">盘点确认库存</th>-->
                </tr>
                </thead>
                <tbody>
                {{foreach from=$datalist item=li key=key}}
                <tr>
                  <td>{{$key+1}}</td>
                    <td><a href="/product/productlist?other={{$li.goods_sku}}&filtertype=skuc" target="_blank">{{$li.goods_sku}}</a></td>
                    <td>{{$li.goods_name|getstr:20:0}}</td>
                    <td>{{$li.storagename}}</td>
                    <td>{{$li.positions}}</td>
                    <td>{{$li.stock}}
                    <input name="goodsid_{{$li.goods_id}}" type="hidden" style="width:30px;padding:4px 4px;" value="{{$li.stock}}" />
                    </td>
                    <td>{{$li.bulkpricecostprice}}</td>
                     <td>{{$li.costprice}}</td>
                    <!--<td><input name="goodsid_{{$li.goods_id}}" type="text" style="width:30px;padding:4px 4px;" value="{{$li.stock}}" /></td>-->
                </tr>
                                {{/foreach}}   
                <tr>
                  <td>&nbsp;</td>
                  <td colspan="6" align="center">
                  <!--<button id="btn" type="submit" class="submit radius2">确认库存并申请清仓</button>-->
                   <button id="btn" type="button" onclick="setDataSubmit();" class="submit radius2">提交并申请盘点</button>
                  <button id="btn" type="button" class="submit radius2" onclick="history.back();">返回调整</button></td>
                  <td>&nbsp;</td>
                </tr>              
                </tbody>
            </table>
  </form>
            </div>
<script language="javascript">
	function setDataSubmit(){
		$("#status").val(1);
		$("#clearinfoform").submit();
	}
</script>
</body>
</html>
